# version
export tag=v1.0

# clean
clean:
	echo "clean bin"
	rm -rf ./bin
# build
build:
	echo "building webserver binary"
	mkdir -p bin/amd64
	CGO_ENABLE=0 GOOS=linux GOARCH=amd64 go build -o bin/amd64

# release
release: build
	echo "building httpserver container"
	docker build -t 8.140.22.220:5000/library/webserver:${tag} .

# push
push: release
	echo "pushing 8.140.22.220:5000/library/webserver:${tag}"
	docker push 8.140.22.220:5000/library/webserver:${tag}